package com.sinosoft.tcmemr.manager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.sinosoft.tcmemr.dao.DiagnoseEntityMapper;
import com.sinosoft.tcmemr.entity.DiagnoseEntity;
import com.sinosoft.tcmemr.manager.DiagnoseManager;

@Component
public class DiagnoseManagerImpl implements DiagnoseManager {
	@Autowired
	private DiagnoseEntityMapper diagnosemapper;
	/**
     * 插入诊断信息
     * @param diagnose
     * @return
     */
    public boolean insertSelective(DiagnoseEntity diagnose){
    	if ( diagnose == null ){
    		return false;
    	}
    	diagnosemapper.insertSelective(diagnose);
    	return true;
    }
}
